Type Definitions
The following type definitions are available globally.
-
A block to execute when list updates completes.
Declaration
Objective-C
typedef void (^IGListUpdaterCompletion)(BOOL)Parameters
finishedSpecifies whether or not the updates finished.
-
A block used to configure cells.
Declaration
Objective-C
typedef void (^IGListSingleSectionCellConfigureBlock)( id _Nonnull, __kindof UICollectionViewCell *_Nonnull)Parameters
itemThe model with which to configure the cell.
cellThe cell to configure.
-
A block that returns the size for the cell given the collection context.
Declaration
Objective-C
typedef CGSize (^IGListSingleSectionCellSizeBlock)( id _Nonnull, id<IGListCollectionContext> _Nullable)Parameters
itemThe model for the section.
collectionContextThe collection context for the section.
Return Value
The for the cell.
-
A completion block to execute when updates are finished.
Declaration
Objective-C
typedef void (^IGListUpdatingCompletion)(BOOL)Parameters
finishedSpecifies whether or not the update finished.
-
A block to be called when the adapter applies changes to the collection view.
Declaration
Objective-C
typedef void (^IGListObjectTransitionBlock)(NSArray *_Nonnull)Swift
typealias IGListObjectTransitionBlock = (UnsafeMutablePointerParameters
toObjectsThe new objects in the collection.
-
A block that contains all of the updates.
Declaration
Objective-C
typedef void (^IGListItemUpdateBlock)()Swift
typealias IGListItemUpdateBlock = () -> Void -
A block to be called when an adapter reloads the collection view.
Declaration
Objective-C
typedef void (^IGListReloadUpdateBlock)()Swift
typealias IGListReloadUpdateBlock = () -> Void
View on GitHub
Type Definitions Reference